AZ-204 Quiz

← Back to Topics

Shared Access Signatures (1 / 7):

You are developing a .NET application that interacts with Azure Blob Storage. You need to generate a token that will allow a client to have read access to a specific container in your storage account for a period of 48 hours. This token should be generated in a straightforward manner, even if it involves sharing your storage account key. The client is not authenticated with Microsoft Entra ID. Write the C# code to accomplish this task.

string accountName = "<storage-account-name>";
string accountKey = "<storage-account-key>";
string containerName = "<container-name>";

// Code here


Exam revision: April 11, 2025